package com.itheima.iojob3;

import java.io.FileWriter;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        try
           ( FileWriter fw = new FileWriter("E:/test/file01.txt");)
        {fw.write("登黄鹤楼");
            fw.write("\r\n");
            fw.write("王之涣");
            fw.write("\r\n");
            fw.write("白日依山尽");
            fw.write("\r\n");
            fw.write("黄河入海流");
            fw.write("\r\n");
            fw.write("欲穷千里目");
            fw.write("\r\n");
            fw.write("更上一层楼");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
